/**
 * 
 */
package com.sunjq.fetchdata.internet;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;

import com.sunjq.fetchdata.object.Notice;

/**
 * @author SJQ
 *
 */
public abstract class BaseParseData {

	protected List<Notice> noticeList = new ArrayList<Notice>();

	protected String url = "";
	
	protected Context context;
	
	protected String httpResponseBody = "";
	
	protected BaseParseData() {
		
	}
	
	protected BaseParseData(String url) {
		this.url = url;
	}
	
	public void genDataFromUrl (String url) {
		httpResponseBody = GetDataFromInternetUtils.getDataFromUrl(url);
	}
	

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getHttpResponseBody() {
		return httpResponseBody;
	}

	public void setHttpResponseBody(String httpResponseBody) {
		this.httpResponseBody = httpResponseBody;
	}
	
	public List<Notice> getNoticeList() {
		return noticeList;
	}

	public void setNoticeList(List<Notice> noticeList) {
		this.noticeList = noticeList;
	}
	
	public abstract List<Notice> buildData();
	
	public abstract List<Notice> buildAllData(int looptime);

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}


}
